package pers.mobian.springforth;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Date 2021/7/10 19:51
 * @Created mobian
 * @Description
 */
public class BeanProcessorTest {
	public static void main(String[] args) {

		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ConfigBean.class);
//		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring-test.xml");
		UserService2 userService = context.getBean("userService2", UserService2.class);
//		userService.show();
	}
}
